package com.dao;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.pojo.User;
import com.pojo.Users;
import com.pojo.vo.vo_UserAndUsers;
import com.pojo.vo.vo_User_Manager;

public interface usersDao {
	public Users login(@Param("user_id")Integer user_id,@Param("user_type_id")Integer user_type_id);
	public List<Users> getUsersByUser_id(@Param("user_id")Integer user_id);
	public List<Users> getUsersByUser_type_id(@Param("user_type_id")Integer user_type_id);
	public Users getUsersByUser_idAndType_id(@Param("user_id")Integer user_id,@Param("user_type_id")Integer user_type_id);
	public int insertOneUsers(Users users);
	public Users getOneUsersByUsers(Users users);
	public List<vo_UserAndUsers> getUserListByUsersIdList(@Param("list")List<Integer> arrayList);
	public List<vo_User_Manager> getAllUserByEnable(@Param("enable")boolean enable);
	public int changeStateByUsers_id(@Param("users_id")Integer users_id, @Param("enable")Boolean enable);
}
